Skip to content

[MCC-1510053] Python Lib- Create a function to retrieve all the list …#52

Merged
butsyk-mdsol merged 1 commit into
mainfrom
feat/MCC-1513773
Jun 26, 2026
Merged

[MCC-1510053] Python Lib- Create a function to retrieve all the list …#52
butsyk-mdsol merged 1 commit into
mainfrom
feat/MCC-1513773

Conversation

@butsyk-mdsol

@butsyk-mdsol butsyk-mdsol commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

…of date/datetime formats we support

feature/bug/enhance/refactor/tech_debt/hotfix

  • Python Lib- Create a function to retrieve all the list of date/datetime formats we support.
  • MCC-1510053

Checklist

  • Review the pull request to fix typos and ensure variable/function names are intuitive, etc.
  • Make sure the pull request does not have excessive number of unnecessary commits. Utilize the git commit --amend --no-edit command to reduce commit messages when making small file changes (like changing linespacing).
  • Make sure you have added unit tests for the code changes. Tests should be added in the tests/ folder.
  • Modify docs, if required. Add any new documentation in the doc/ folder.
  • Rebase on latest active development branch (develop/main).

Changes Summary

Add a new get_datetime_formats() function to the Jupyter file that returns the full list of 128 supported date and datetime format strings.

Implement get_datetime_formats in Jupyter file with type filter support for all, date, datetime
Return a structured object with index, format, and type columns.
Ensure all returns 128 entries
Add or update automated tests for function behavior, filtering, invalid input, and publish mapping compatibility.
Update README and usage guide
AC:

  • get_datetime_formats returns all supported date and date time formats only
  • README and usage is updated with example on how to use this

Copilot AI review requested due to automatic review settings June 25, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new public API (get_datetime_formats) to retrieve supported date/datetime format patterns from the backend, with optional server-side filtering and a typed domain result to help consumers use datetime_formats correctly during dry_publish / publish.

Changes:

  • Introduces get_datetime_formats end-to-end (client → service → transport) and adds new request/result models.
  • Adds a comprehensive new unit test suite covering domain helpers, service validation/translation, transport action encoding/decoding, and client delegation.
  • Updates README and the usage notebook with examples for discovering supported formats.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_publish.py Updates Transport stub to satisfy the expanded Transport ABC.
tests/test_get_datetime_formats.py New test suite validating behavior across domain/service/transport/client layers.
tests/test_dry_publish.py Updates Transport stub to satisfy the expanded Transport ABC (currently includes an incorrect type annotation).
readme/README-v1.0.0.md Documents get_datetime_formats() API, arguments, and result helpers with example usage.
guides/dataconnect_usage.ipynb Adds a notebook section demonstrating how to retrieve and inspect supported formats.
dataconnect/transport/models.py Adds DatetimeFormatsRequest transport DTO.
dataconnect/transport/base.py Extends Transport ABC with get_datetime_formats.
dataconnect/transport/arrow_flight/transport.py Implements the Flight action call/JSON decoding for get_datetime_formats.
dataconnect/service/default.py Implements validation/normalization and classification into DatetimeFormatsResult.
dataconnect/service/base.py Adds get_datetime_formats to the service interface.
dataconnect/models.py Adds DatetimeFormat and DatetimeFormatsResult domain models + convenience accessors.
dataconnect/client.py Exposes DataConnectClient.get_datetime_formats façade method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_dry_publish.py
Comment thread tests/test_dry_publish.py
Comment thread dataconnect/models.py
@butsyk-mdsol butsyk-mdsol merged commit f9f1e21 into main Jun 26, 2026
2 of 3 checks passed
@butsyk-mdsol butsyk-mdsol deleted the feat/MCC-1513773 branch June 26, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants